<include file="application/walletyhbbadmin/view/public/left.html"/>
<div id="dcMain">
    <!-- 当前位置 -->

        <div id="urHere">管理中心<b>></b><strong>首页信息</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">

        <div id="list">
            <h3>基础信息</h3><br/>
            <div class="actionBtn" style="padding-left: 100px;">
                <form action="{:U('edit')}" method="post" enctype="multipart/form-data">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <input type="hidden" name="id" value="{$res.w_id}">
                        <tr>
                            <td align="right" valign="top">联系我们(中)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="xinxi"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="xinxi" name="xinxi" style="width:780px;height:400px;" class="textArea">{$res.w_xinxi}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">联系我们(英)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="uxinxi"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="uxinxi" name="uxinxi" style="width:780px;height:400px;" class="textArea">{$arr.w_xinxi}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">联系我们(日)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="jxinxi"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="jxinxi" name="jxinxi" style="width:780px;height:400px;" class="textArea">{$list.w_xinxi}</textarea>
                            </td>
                        </tr>
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司名称：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="title" name="title" value="{$res.w_title}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司地址(中)：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="content" name="keywords" value="{$res.w_keywords}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司地址(英)：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="ucontent" name="ukeywords" value="{$arr.w_keywords}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司地址(日)：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="jcontent" name="jkeywords" value="{$list.w_keywords}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">制冷产品业务电话：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="phone" name="phone" value="{$res.w_description}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">制冷产品业务邮箱：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="emailzl" name="emailzl" value="{$res.w_emailzl}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">压缩机业务电话：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="qq" name="qq" value="{$res.w_qq}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">压缩机业务邮箱：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="email" name="email" value="{$res.w_email}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">特种电机业务电话：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="chuanzhen" name="chuanzhen" value="{$res.w_chanzhen}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">特种电机业务邮箱：</td>-->
<!--                            <td>-->
<!--                                <input type="text" id="emailtz" name="emailtz" value="{$res.w_emailtz}" size="80" class="inpMain" />-->
<!--                            </td>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司简介(中)：</td>-->
<!--                            <td>-->
<!--                                <textarea id="jianjie" name="jianjie" style="width:780px;height:400px;" class="textArea">{$res.w_jianjie}</textarea>-->
<!--                            </td>-->
<!--                        </tr>-->
                        <tr>
                            <td align="right" valign="top">公司简介(中)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="jianjie"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="jianjie" name="jianjie" style="width:780px;height:400px;" class="textArea">{$res.w_jianjie}</textarea>
                            </td>
                        </tr>
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司简介(英)：</td>-->
<!--                            <td>-->
<!--                                <textarea id="ujianjie" name="ujianjie" style="width:780px;height:400px;" class="textArea">{$arr.w_jianjie}</textarea>-->
<!--                            </td>-->
<!--                        </tr>-->
                        <tr>
                            <td align="right" valign="top">公司简介(英)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="ujianjie"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="ujianjie" name="ujianjie" style="width:780px;height:400px;" class="textArea">{$arr.w_jianjie}</textarea>
                            </td>
                        </tr>
<!--                        <tr>-->
<!--                            <td width="110" align="right">公司简介(日)：</td>-->
<!--                            <td>-->
<!--                                <textarea id="jjianjie" name="jjianjie" style="width:780px;height:400px;" class="textArea">{$list.w_jianjie}</textarea>-->
<!--                            </td>-->
<!--                        </tr>-->
                        <tr>
                            <td align="right" valign="top">公司简介(日)：</td>
                            <td>
                                <!-- KindEditor -->
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/themes/default/default.css" />
                                <link rel="stylesheet" href="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.css" />
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/kindeditor.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/lang/zh_CN.js"></script>
                                <script charset="utf-8" src="__PUBLIC__/app/admin/js/kindeditor/plugins/code/prettify.js"></script>
                                <script>
                                    KindEditor.ready(function(K) {
                                        var editor1 = K.create('textarea[name="jjianjie"]', {
                                            cssPath : '../plugins/code/prettify.css',
                                            uploadJson : '../php/upload_json.php',
                                            fileManagerJson : '../php/file_manager_json.php',
                                            allowFileManager : true,
                                            afterCreate : function() {
                                                var self = this;
                                                K.ctrl(document, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                                K.ctrl(self.edit.doc, 13, function() {
                                                    self.sync();
                                                    K('form[name=example]')[0].submit();
                                                });
                                            }
                                        });
                                        prettyPrint();
                                    });
                                </script>
                                <!-- /KindEditor -->
                                <textarea id="jjianjie" name="jjianjie" style="width:780px;height:400px;" class="textArea">{$list.w_jianjie}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input name="submit" class="btn" type="submit" value="提交" />
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>

    </div>
</div>
<div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
<script type="text/javascript">

    onload = function()
    {
        document.forms['action'].reset();
    }

    function douAction()
    {
        var frm = document.forms['action'];
        frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
    }




    //实名认证
    function authentication(id){
        layer.open({
            type: 2,
            title: '实名认证',
            maxmin: true,
            shadeClose: true,
            area : ['800px' , '850px'],
            content: '{:U("Member/authentication")}?member_id='+id
        });
    }





    //添加地址
    function addaddress(id){
        layer.open({
            type: 2,
            title: '添加地址',
            maxmin: true,
            shadeClose: true,
            area : ['800px' , '850px'],
            content: '{:U("Member/addaddress")}?member_id='+id
        });
    }




    function shanchu(id) {
        var url = "{:U('Member/delete')}";
        var msg = "您确定要删除吗？";
        if (confirm(msg)==true){
            $.post(url, {'member_id': id}, function (data) {
                layer.msg(data.info);
                if (data.status == 1) {
                    setTimeout(function () {
                        window.location.reload();
                    }, 2000);
                }
            });
        }
    }

    //注册审核通过
    function audit_y(id) {
        var url = "{:U('Member/audit_y')}";
        $.post(url, {id: id}, function (data) {
            layer.msg(data.info);
            if (data.status == 1) {
                setTimeout(function () {
                    window.location.reload();
                }, 2000);
            }
        })
    }
    function shanchu(id){
        var url="{:U('Member/delete')}";
        var msg = "您确定要删除吗？";
        if (confirm(msg)==true) {
            $.post(url, {'member_id': id}, function (data) {
                layer.msg(data.info);
                if (data.status == 1) {
                    setTimeout(function () {
                        window.location.reload();
                    }, 2000);
                }
            });
        }
    }

    //查看代理申请信息
    function getDistributInfo(user_id){
        layer.open({
            type: 2,
            title: '代理申请信息',
            maxmin: true,
            shadeClose: true,
            area : ['800px' , '850px'],
            content: '{:U("Member/getDistributInfo")}?user_id='+user_id
        });
    }


</script>
</body>
</html>
